Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

The trailing-return-type of the equivalent-to lambda expression needs to appear after the lambda-specifier-seq.

This is probably an error in P2996R13 which wasn't fixed when applied to the working draft.

@eisenwave eisenwave added the P1-Important Misapplication of paper, malformed code, internal inconsistencies label Nov 10, 2025
@eisenwave
Copy link
Member

P1. Normative wording defect.

Looking at https://eel.is/c++draft/expr.prim.lambda.general#nt:lambda-declarator, the fix looks correct.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 10, 2025

Agreed, looks like a simple error in the paper. Thanks!

@tkoeppe tkoeppe merged commit 99e4ffd into cplusplus:main Nov 10, 2025
2 checks passed
@tkoeppe tkoeppe removed the P1-Important Misapplication of paper, malformed code, internal inconsistencies label Nov 10, 2025
@frederick-vs-ja frederick-vs-ja deleted the static-consteval-ret branch November 11, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants